package com.byxy.po;

import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

//收藏表

@Table(name = "Collection")
@Data
public class Collection{
    @Column(name = "id", type = MySqlTypeConstant.INT, length = 15, isKey = true)
    private Integer id;//收藏id
    @Column(name = "Colluser_id", type = MySqlTypeConstant.INT, length = 15)
    private Integer Colluser_id;//用户Id
    @Column(name = "Collblog_id", type = MySqlTypeConstant.INT, length = 15)
    private Integer Collblog_id;//博客ID
    @Column(name = "collection_time", type = MySqlTypeConstant.DATETIME)
    private Date collection_time;//收藏时间
}
